import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Scanner;

public class java20231119 {
    public static  void transform(int[] arr){
        int i = 0;
        for(i = 0;i < arr.length;i ++){
            arr[i] *= 2;
        }
    }
    public static void main1(String[] args) {
        int[] arr={1,2,3};
        transform(arr);
        System.out.println(Arrays.toString(arr));
    }

public static int sum(int[] arr){
        int i = 0;
        int sum = 0;
        for( i = 0;i < arr.length;i ++){
            sum += arr[i];
        }
        return sum;
}
    public static void main2(String[] args) {
        int[] arr={1,2,3,4,5,6,7,8,9,10};
        System.out.println(sum(arr));
    }


    public static void exchang(int[] arr){
        int i = 0;
        int j= arr.length-1;
        while( i <= j){
            while( i % 2 == 0){
                 i ++;
            }
            while( j % 2 != 0){
                j --;
            }
            int tmp = 0;
            tmp = arr[i];
            arr[i] = arr[j];
            arr[j] = tmp;
            i ++;
            j --;
        }
    }
  public static void main3(String[] args) {
        int[] arr={1,2,3,4,5,6,7,8,9,10};
        exchang(arr);
      System.out.println(Arrays.toString(arr));
    }

    public static void main4(String[] args) {
        int[] arr={};
        Scanner sc = new Scanner(System.in);
       int target = sc.nextInt();
       int[] nums ={2,7,11,15};
        int i = 0;
        int j = 0;

        int[] tmp=new int[2];
        for(i = 0; i < nums.length ;i ++ ){
            for ( j = i+1 ; j < nums.length; j ++) {
                if(nums[i] + nums[j]==target){
                    tmp[0] = i;
                    tmp[1] = j;
                }
            }
        }
        System.out.println(Arrays.toString(tmp));
    }


    public static void main(String[] args) {
        int[] arr1={2,2,1};
        find(arr1);
    }
    public static void find(int[] arr){
        int i = 0;
        int j = 0;
        for(i = 0 ; i < arr.length ; i++){
            int count = 0;
            for(j = 0 ; j < arr.length ; j++){
                if(arr[i] == arr[j]){
                    count++;
                }
            }
           if(count==1) {
               System.out.println(arr[i]);
           }
        }
    }
}
